package cn.vivi.design.observer;

public class Client {

    public static void main(String[] args) {
        Subject subject = new SubscriptionSubject();

        subject.attach(new WeChatUser("1"));
        subject.attach(new WeChatUser("2"));
        subject.attach(new WeChatUser("3"));

        subject.notify("大师兄，师傅被妖怪抓走了");
    }

}
